package com.nursinghome.admin.service;

import com.nursinghome.bean.PageFilter;
import com.nursinghome.bean.Room;
import com.nursinghome.exception.NurisingHomeException;

public interface RoomService {
    //查询所有的房间
    PageFilter<Room> selectAll(String pageNum, String pageSize, Room room);
    //根据rid查询所有的房间
    Room selectByRid(Integer rid);
    //根据房间号查询房间
    Room selectByRno(String rno);
    //新增房间
    Boolean insert(Room room) throws NurisingHomeException;
    //修改
    Boolean update(Room room) throws NurisingHomeException;
    //删除房间
    Boolean delete(Integer rid) throws NurisingHomeException;
}
